package ie.lawlor.amvc.component.properties;

import ie.lawlor.amvc.event.Event;
import ie.lawlor.amvc.patterns.standard.StandardModel;



public class PropertiesModel extends StandardModel {
    String filename;
    /** Creates a new instance of LoginModel */
    public PropertiesModel(String name) {
    	super(name);
    }
    

	public void doReadProperties(Event event) {
		//TODO Read from a file.
		logger.debug("Entering");
		System.setProperty("com.spokesoft.org", "test");
		System.setProperty("com.spokesoft.laf", "srs_aquathemepack.zip");
		System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
		System.setProperty("java.naming.provider.url", "jnp://localhost:1099");
		System.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
		System.setProperty("com.spokesoft.ieexe", "C:\\Program Files\\Internet Explorer\\IEXPLORE.EXE");
		fire(PropertiesController.PROPERTIES_READ);
    }
    
    public void doSetFilename(Event e){
    }
    
}
